package com.yunnuo.system.users.entity;

import com.yunnuo.system.comm.entity.IdEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用户角色表
 * Created by 魏洪福(15064000912@163.com) on  2018/5/25.
 */
@Entity
@Table(name="SYS_USER_ROLE")
public class UserRole extends IdEntity {
    // 用户ID
    private String  userId;
    // 角色ID
    private String  roleId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "UserRole{" +
                "userId='" + userId +
                ", roleId='" + roleId +
                '}';
    }
}
